﻿/*
 * 
 * */

namespace AcctrueWMS.Foundation.Rule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Collections.ObjectModel;
    using AcctrueWMS.Foundation.Data;

    public interface IModelRuleManager
    {
        /// <summary>
        /// 加载规则引擎XML文件
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        Collection<ModelRule> LoadRules(string path);

        /// <summary>
        /// 更新处理的数据模型
        /// </summary>
        /// <param name="dataModel"></param>
        void LogRule(DataModel dataModel);

        ///// <summary>
        ///// 记录处理失败的数据模型
        ///// </summary>
        ///// <param name="dataModel"></param>
        //void LogError(DataModel dataModel);
    }
}
